<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<base href="<%=basePath%>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/bootstrap1.min.css" rel="stylesheet">
<link href="css/bootstrap1.min.css">
<link href="css/font-awesome.min.css"  rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/style.min_EDT.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/master.css">
<link rel="stylesheet" type="text/css" href="css/plugins/iCheck/custom.css">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>门店管理</h5>
                </div>
                <div class="ibox-content">
                    <div class="row" >
                        <form class="form-horizontal" ">
                            <div class="col-sm-12">
                                <div class="row" style="margin-left: 250px;">
                                    <div class="col-sm-3">
                                        <div class="J_menuItem">
                                            <div class="widget green-bg p-lg text-center">
                                                <div class="m-b-md">
                                                    <h1 class="m-xs">信用贷</h1>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                        <a class="J_menuItem" data-title="付费门店" href="#">
                                            <div class="widget  yellow-bg p-lg text-center">
                                                <div class="m-b-md">
                                                    <h1 class="m-xs">抵押贷</h1>
                                                </div>
                                            </div>
                                        </a>
                                    </div>
                                    <div class="col-sm-3">
                                        <a class="J_menuItem" data-title="付费总计" href="#">
                                            <div class="widget  blue-bg p-lg text-center">
                                                <div class="m-b-md">
                                                    <h1 class="m-xs">企业贷</h1>
                                                </div>
                                            </div>
                                        </a>
                                    </div>

                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="row m-b-lg m-t-lg">
                        <div class="col-sm-4"></div>
                        <div class="col-sm-4 text-center">
                        	 <form action="<%=basePath%>ApplyAction/queryApplyByFy.do" method="post">
	                            <div class="form-group">
	                                <div class="input-group">
	                                    <input class="form-control" id="Keywords" name="app_name" placeholder="请输入贷款人姓名" type="text" value="${query.app_name }">
	                                    <span class="input-group-btn">
	                                        <!-- <button type="submit" class="btn btn-primary">
	                                            <i class="fa fa-search"></i> 搜索
	                                        </button> -->
	                                        <input type="submit" value="搜索"  class="btn btn-primary">
	                                    </span>
	                                </div>
	                            </div>
                           </form>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-hover" id="ListTB">
                            <thead>
                                <tr>
                                    <th><input type="checkbox" class="i-checks" name="IDs" style="position: absolute; opacity: 0;"></th>
                                    <th>贷款编号</th>
                                    <th>贷款人</th>
                                    <th>贷款金额 </th>
                                    <th>贷款类型 </th>
                                    <th>贷款期数</th>
                                    <th>审核状态</th>
                                    <th>详细信息</th>
                                </tr>
                            </thead>
                            <tbody>
                              <c:forEach items="${applys }" var="apps" varStatus="stat" >
                                <tr>
                                    <td>
                                        <input type="checkbox" class="i-checks" name="IDs" style="position: absolute; opacity: 0;">
                                    </td>
                                    <th>${apps.pay_num }</th>
                                    <th>${apps.app_name }</th>
                                    <th>${apps.daik_money } </th>
                                    <th>${apps.product.pro_name} </th>
                                    <th>${apps.fenqi.fname }</th>
                                    <th>${apps.status.s_name }</th>
                                    <td><a href="#">详细信息</a></td>
                                </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div>
                 <!--    <div class="row">
                        <div class="col-sm-6">
                            <nav class="navbar-right" id="pagination">
                                <ul class="pagination no-margins">
                                    <li class="active"><a href="javascript:;">1</a></li><li><a href="javascript:;" onclick="ToPageIndex(2)">2</a></li><li><a href="javascript:;" onclick="ToPageIndex(3)">3</a></li><li><a href="javascript:;" onclick="ToPageIndex(4)">4</a></li><li><a href="javascript:;" onclick="ToPageIndex(5)">5</a></li><li><a href="javascript:;" onclick="ToPageIndex(6)">6</a></li><li><a href="javascript:;" onclick="ToPageIndex(7)">7</a></li><li><a href="javascript:;" onclick="ToPageIndex(8)">8</a></li><li><a href="javascript:;" onclick="ToPageIndex(2)">&gt;</a></li><li><a aria-label="Next" href="javascript:;" onclick="ToPageIndex(32)"><span aria-hidden="true">&gt;&gt;</span></a></li>
                                </ul>
                            </nav>
                            <div class="clearfix"></div>
                        </div>
                        <div class="col-sm-3 text-left">
                            共 <span class="text-danger">60 </span>条，第 <span class="text-danger">1 / 10 </span> 页
                        </div>
                    </div> -->
                 <center>
					<a href="<%=basePath%>ApplyAction/queryApplyByFy.do?page=1&app_name=${query.app_name}">首页</a>
			  		<c:choose>
			  			<c:when test="${fy.pageCount==0 }">
			  				上一页
			  			</c:when>
			  			<c:when test="${fy.page==1 }">
			  				上一页
			  			</c:when>
			  			<c:otherwise>
			  				<a href="<%=basePath%>ApplyAction/queryApplyByFy.do?page=${fy.page-1 }&app_name=${query.app_name}">上一页</a>
			  			</c:otherwise>
			  		</c:choose>
			  		<c:choose>
			  			<c:when test="${fy.page==fy.pageCount }">
			  				下一页
			  			</c:when>
			  			<c:when test="${fy.pageCount==0 }">
			  				下一页
			  			</c:when>
			  			<c:otherwise>
			  				<a href="<%=basePath%>ApplyAction/queryApplyByFy.do?page=${fy.page+1 }&app_name=${query.app_name}">下一页</a>
			  			</c:otherwise>
			  		</c:choose>
			  		<a href="<%=basePath%>ApplyAction/queryApplyByFy.do?page=${fy.pageCount }&app_name=${query.app_name}">尾页</a>
		  			当前第${fy.page }页&nbsp;&nbsp;共${fy.pageCount }页  
	  			</center>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="js/jquery1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/plugins/iCheck/icheck.min.js"></script>
<script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script>
    $(document).ready(function(){
        $(".nav-tab-info li a:eq(0)").addClass("active");
        $(".i-checks").iCheck({
            checkboxClass:"icheckbox_square-green",
            radioClass:"iradio_square-green"
        })
    });
</script>
</body>
</html>